rm -rf out/*

PID=$(ps -ef|grep tomj-jiaban.jar|grep -v grep|awk '{print $2}')
if [ -z $PID ]; then
        echo "tomj-jiaban not exist"
else
        echo "process id: $PID"
        kill -9 ${PID}
        echo "process tomj-jiaban killed"
fi

nohup java -jar tomj-jiaban.jar > out/jiaban.file 2>&1 &

